luci-base: change button-text from Dismiss to Close in UCI changes overview
authorSven Roederer <[email protected]>
Fri, 30 Apr 2021 23:12:02 +0000 (01:12 +0200)
committerFlorian Eckert <[email protected]>
Tue, 4 May 2021 07:16:12 +0000 (09:16 +0200)
Change the left button of the UCI Apply-changes overview to the more correct
function close. This also avoids confusion between Dismiss and Revert, which
translate to the same in german.

Signed-off-by: Sven Roederer <[email protected]>
(cherry picked from commit b56912d9fcf6acb0ba3008de3df15188318376f2)

modules/luci-base/htdocs/luci-static/resources/ui.js

index 3a991be9ac019ec538e561eb46c7aaad6327dec3..5a0e6d297b748b992792fcb4493bcb9e732bdb97 100644 (file)
@@ -4063,7 +4063,7 @@ var UI = baseclass.extend(/** @lends LuCI.ui.prototype */ {
                                                E('button', {
                                                        'class': 'btn',
                                                        'click': UI.prototype.hideModal
-                                               }, [ _('Dismiss') ]), ' ',
+                                               }, [ _('Close') ]), ' ',
                                                E('button', {
                                                        'class': 'cbi-button cbi-button-positive important',
                                                        'click': L.bind(this.apply, this, true)